<template>
	<view class="product-detail">
    <!-- #ifdef MP-WEIXIN || APP-PLUS -->
    <view class="tc  header"
          :style="topBarHeight() == 0 ? '': 'height:'+topBarHeight()+'px;padding-top:'+topBarTop()+'px'">
      <view class="reg180" :style="topBarHeight() == 0 ? '': 'height:'+topBarHeight()+'px;'">
        <image @click="goback" src="/static/icon/back-jianatou.png" mode="" style="width: 48rpx;height: 48rpx;">
        </image>
      </view>
    </view>
    <!-- #endif -->
		<scroll-view scroll-y="true" class="scroll-Y" :style="'height:' + scrollviewHigh + 'px;'" v-if="!loadding">
			<!--图片-->
			<view class="product-pic">
				<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
					<swiper-item v-for="(item, index) in detail.product.image" :key="index">
						<image :src="item.file_path" mode="aspectFit"></image>
					</swiper-item>
				</swiper>
			</view>

      <view class="hlbblock" style="padding: 15rpx;width: 88%;border-radius: 20rpx 20rpx 0 0;display: flex;align-items: center;justify-content: space-between;background: linear-gradient(to right,#FE6236,#FE3A3A)">
        <view style="display: flex;align-items: center">
          <view>
            <image src="/static/images/group/fire2.png" style="width: 40rpx;margin-right: 15rpx" mode="widthFix"></image>
          </view>
          <view style="color: #FFFFFF">
            限时秒杀
          </view>
        </view>
        <view style="display: flex;align-items: center">
          <view style="font-size: 24rpx;color: #FFFFFF">
            活动剩余：
          </view>
          <view>
            <u-count-down  separator="colon" color="#FF7307" bg-color="#FFFFFF"  separator-color="white" font-size="25" separator-size="25" height="45"   :timestamp="diftime" ></u-count-down>
          </view>
        </view>
      </view>
      <view class="hlbblock" style="padding: 15rpx 30rpx;margin: -30rpx auto 12rpx">
        <view class="fsc">
          <view>
            <view style="display: flex;align-items: center">
              <view style="color: #F63E36">
                <text clsss="f24">
                  ￥
                </text>
                <text style="font-size: 44rpx">
                  {{detail.seckill_price}}
                </text>
              </view>
              <view class="f24 text-d-line" style="color: #999999;margin-left: 15rpx">
                {{ '￥'+detail.line_price }}
              </view>

            </view>


          </view>
          <view style="font-size: 24rpx;color: #999999">
            <view class="slider" style="width: 200rpx;margin-top: 20rpx">
              <view class="slider-inner" :style="'width:' + (detail.product_sales / (detail.product_sales + detail.stock)) * 100 + '%;'"></view>
            </view>
            <view class="already-sale" style="font-size: 20rpx;color: #999999;width: 200rpx;;text-align: right">
              <text style="color: #FE3A3A;text-align: right">
                已抢购{{ detail.product_sales }}/
              </text>

              {{detail.product_sales + detail.stock}}</view>


<!--            仅剩{{ detail.stock }}件-->
          </view>
        </view>
        <view class="product-name">{{ detail.product.product_name }}</view>
        <view class="">{{ detail.product.selling_point }}</view>

        <view style="display: flex;justify-content: space-between;align-items: center;padding: 20rpx 0 0">
          <view style="align-items: center;display: flex;" >
            <view style="margin-left: -15rpx">
              <u-tag style="margin-left: 15rpx"  size="mini" text="自营" type="success" border-color="#F63E36" bg-color="#F63E36" color="white" />
            </view>
          </view>
          <view style="align-items: center;display: flex;" @click="showShare">
            <image src="/static/images/goods/detail/share.png" style="width: 35rpx;margin-bottom: 5rpx" mode="widthFix"></image>
            <view style="margin: 10rpx;font-size: 25rpx">
              分享
            </view>
          </view>
        </view>
      </view>
			<!--限时秒杀-->


			<!--基本信息-->

            <view class="hlbblock" style="margin: 12rpx auto">
            <!--已选择-->
				<view class="already-choice" :class="detail.server!=''?'border-b-d9':''" v-if="detail.spec_type == 20" @click="openPopup('order')">
					<view class="group-hd">
						<view class="left">
							<text class="min-name gray9">选择：</text>
						</view>
						<view class="flex-1 p-0-20 center-content f28 text-ellipsis o-h">
							{{alreadyChioce}}
						</view>
						<view class="right">
							<text class="icon iconfont icon-jiantou" style="font-size: 22rpx;color: #9A9A9A;"></text>
						</view>
					</view>
				</view>
				<!-- 保障 -->
				<view class="already-choice" @click="showGuarantee" v-if="detail.server!=''">
					<view class="group-hd">
						<view class="left">
							<text class="min-name gray9">服务：</text>
						</view>
						<view class="flex-1 p-0-20 center-content f28 text-ellipsis o-h">
							{{serverList}}
						</view>
						<view class="right">
							<text class="icon iconfont icon-jiantou" style="font-size: 22rpx;color: #9A9A9A;"></text>
						</view>
					</view>
				</view>
			</view>
			<!-- 店铺信息 -->
      <view class="hlbblock" v-if="store_open" style="margin: 12rpx auto;padding: 20rpx;display: flex;justify-content: space-between;align-items: center">
        <view style="display: flex;align-items: center">
          <image :src="shop_info.logos" style="width: 80rpx;height:80rpx;border-radius: 15rpx" mode="widthFix"></image>

          <view style="margin-left: 15rpx;font-weight: bold">
            {{shop_info.name}}
          </view>
        </view>
        <view>
          <navigator @click="goto_shop()" style="border: 1px #F63E36 solid;border-radius: 50rpx;">
            <view style="color: #F63E36;height: 60rpx;line-height: 60rpx;font-size: 24rpx;margin: 0 20rpx">
              进店逛逛<u-icon name="arrow-right" size="26" color="#F63E36" style="margin-left: 10rpx"></u-icon>
            </view>
          </navigator>
        </view>
      </view>

      <!--详情内容-->
			<view class="product-content"  style="margin: 12rpx auto;">
				<view class="group-hd border-b-e">
					<view class="d-s-c">
						<view class="pro_nameline"></view><text class="min-name  f32 fb">商品介绍</text>
					</view>
				</view>
				
				<view v-if="detail.product.is_picture == 0" class="content-box" v-html="detail.product.content"></view>
				<view v-if="detail.product.is_picture == 1" class="content-box">
					<view v-for="(item, index) in detail.product.contentImage" :key="index" class="content-item">
						<image :src="item.file_path" mode="widthFix"></image>
					</view>
				</view>
			</view>
		</scroll-view>

		<!--底部按钮-->
		<view class="btns-wrap" style="padding: 20rpx">
			<view class="customer-service d-c-c">
				<view class="icon-box d-c-c" @click="gotoPage('/pages/index/index')">
					<button class="d-c-c d-c bg-white">
						<text class="btn_btom pr icon iconfont icon-Homehomepagemenu gray3" style="height: 50rpx;line-height: 60rpx;"></text>
						<text class="f22 gray3" style="height: 50rpx;line-height: 40rpx;">首页</text>
					</button>
				</view>
				<!-- #ifdef MP-WEIXIN -->
				<view class="icon-box">
					<button class="d-c-c d-c" open-type="contact" session-from="wxapp">
						<text class="icon iconfont icon-kefu2 gray3" style="height: 50rpx;line-height: 60rpx;"></text>
						<text class="f22 gray3" style="height: 50rpx;line-height: 40rpx;">客服</text>
					</button>
				</view>
				<!-- #endif -->
				<!-- #ifdef H5 -->
				<view class="icon-box" @click="openMaservice">
					<button class="d-c-c d-c">
						<text class="icon iconfont icon-kefu2 gray3" style="height: 50rpx;line-height: 60rpx;"></text>
						<text class="f22 gray3" style="height: 50rpx;line-height: 40rpx;">客服</text>
					</button>
				</view>
				<!-- #endif -->
			</view>
			<button type="primary" class="buy" style="background:linear-gradient(to right,#FE6236,#FE3A3A);" @click="openPopup('order')">立即抢购</button>
		</view>

		<!--购物确定-->
		<spec :isPopup="isPopup" @confirm="confirm" :productModel="productModel" @close="closePopup"></spec>

		<!--客服-->
		<Mpservice v-if="isMpservice" :isMpservice="isMpservice" @close="closeMpservice"></Mpservice>
		
		<!--底部弹窗-->
		<share :isbottmpanel="isbottmpanel" :product_id="seckill_product_id" @close="closeBottmpanel"></share>
		<!--生成图片-->
		<uniPopup :show="isCreatedImg1" type="middle" @hidePopup="hidePopupFunc">
		    <view class="d-c-c d-c create-img">
		        <image :src="poster_img" mode="widthFix"></image>
		        <!-- #ifdef MP -->
		        <button class="btn-red mt20" type="default" @click="savePosterImg">保存图片</button>
		        <!-- #endif  -->
		        <!-- #ifdef H5 -->
		        <view class="mt20 f34 red" type="default">长按保存图片</view>
		        <!-- #endif -->
		    </view>
		</uniPopup>
		
		<u-mask :show="isCreatedImg" @click="isCreatedImg = false">
		    <view class="" style="text-align: center">
				<image src="https://img.dfhlyl.com/20220801140536c7ba48919.png" style="width: 390rpx;margin: 80px auto 0;" mode="widthFix"></image>
		        <image :src="poster_img" style="width: 65%;margin:0 auto 30rpx;border-radius:20rpx " mode="widthFix" :show-menu-by-longpress="true"></image>
		        <view @click="savePosterImg" class="hlbbutton" style="margin: auto;width: 280rpx">
		            去发朋友圈
		        </view>
		    </view>
		</u-mask>

		<!-- 保障弹窗 -->
		<guarantee :isguarantee="isguarantee" :server="detail.server" @close="closeGuarantee"></guarantee>
	</view>
</template>

<script>
	import share from './popup/share.vue';
	import Spec from './popup/Spec.vue';
	import Countdown from '@/components/countdown/countdown.vue';
	import Mpservice from '@/components/mpservice/Mpservice.vue';
	import utils from '@/common/utils.js';
	import guarantee from '@/components/guarantee.vue';
	import uniPopup from '@/components/uni-popup.vue';
	export default {
		components: {
			/*选择规格*/
			Spec,
			/*倒计时组件*/
			Countdown,
			/*客服*/
			Mpservice,
			guarantee,
			share,
			uniPopup
		},
		data() {
			return {
				/*手机高度*/
				phoneHeight: 0,
				/*可滚动视图区域高度*/
				scrollviewHigh: 0,
				/*是否加载完成*/
				loadding: true,
				/*是否显示面板指示点*/
				indicatorDots: true,
				/*是否自动切换*/
				autoplay: true,
				/*自动切换时间间隔*/
				interval: 2000,
				/*滑动动画时长*/
				duration: 500,
				/*秒杀商品id*/
				seckill_product_id: null,
				/*详情*/
				detail: {
					/*商品规格*/
					product_sku: {},
					/*当前规格对象*/
					show_sku: {
						/*秒杀价格*/
						seckill_price: '',
						/*商品规格ID*/
						product_sku_id: 0,
						/*划线价格*/
						line_price: '',
						/*库存数量*/
						stock_num: 0,
						/*商品规格图片*/
						sku_image: '',
						/*秒杀商品规格ID*/
						seckill_product_sku_id: 0
					},
					/*暂不知晓*/
					show_point_sku: {}
				},
				/*已经选择的规格*/
				alreadyChioce: '',
				/*是否确定购买弹窗*/
				isPopup: false,
				/*倒计时配置*/
				countdownConfig: {
					/*开始时间*/
					startstamp: 0,
					/*结束时间*/
					endstamp: 0
				},
				diftime :0,
				/*商品属性*/
				specData: null,
				/*子级页面传参*/
				productModel: {},
				/*商品规格*/
				productSku: [],
				/*是否打开客服*/
				isMpservice: false,
				/*购物车商品数量*/
				cart_total_num: 0,
				serverList: '', //保障
				isguarantee: false,
				shop_info: {},
				store_open: 1,
				/*分享*/
				isbottmpanel: false,
				/*是否生成图片*/
				isCreatedImg: false,
				poster_img: '',
			};
		},
		onLoad(e) {
			/*分类id*/

			this.seckill_product_id = e.seckill_product_id;

		},
		mounted() {
			this.init();
			/*获取产品详情*/
			this.getData();
		},
		methods: {
			/*初始化*/
			init() {
				let _this = this;
				uni.getSystemInfo({
					success(res) {
						_this.phoneHeight = res.windowHeight;
						// 计算组件的高度
						let view = uni.createSelectorQuery().select('.btns-wrap');
						view.boundingClientRect(data => {
							let h = _this.phoneHeight - data.height;
							_this.scrollviewHigh = h;
						}).exec();
					}
				});
			},
      goback() {
        uni.navigateBack()
      },

			/*获取数据*/
			getData() {
				let self = this;
				uni.showLoading({
					title: '加载中'
				});
				self._get(
					'plus.seckill.product/detail', {
						seckill_product_id: self.seckill_product_id
					},
					function(res) {
						/*倒计时*/
						self.countdownConfig.endstamp = res.data.active.end_time;
						self.countdownConfig.startstamp = res.data.active.start_time;
            self.diftime  =self.countdownConfig.endstamp-Date.parse(new Date())/1000;

						/*详情内容格式化*/
						res.data.detail.product.content = utils.format_content(res.data.detail.product.content);

						/*初始化商品多规格*/
						if (res.data.detail.product.spec_type == 20) {
							self.initSpecData(res.data.detail.seckillSku, res.data.specData);
						}
						//#ifdef MP-WEIXIN
						self.store_open = res.data.store_open;
						//#endif
						self.detail = res.data.detail;
						self.shop_info = res.data.detail.supplier;
						self.getServer();
						self.loadding = false;
						uni.hideLoading();
					}
				);
			},
			getServer() {
				let self = this;
				let serverList = [];
				if (self.detail.server) {
					self.detail.server.forEach((item, index) => {
						serverList.push(item.name)
					})
					self.serverList = serverList.join('·')
				}
			},
			closeGuarantee() {
				this.isguarantee = false;
			},
			showGuarantee() {
				this.isguarantee = true;
			},
			/*多规格商品*/
			initSpecData(list, data) {
				for (let i = 0; i < list.length; i++) {
					let item = list[i];
					if (item.productSku) {
						let arr = item.productSku.spec_sku_id.split('_').map(Number);
						this.productSku.push(arr);
					}
				}
				for (let i in data.spec_attr) {
					for (let j = 0; j < data.spec_attr[i].spec_items.length; j++) {
						let item = data.spec_attr[i].spec_items[j];
						if (this.hasSpec(item.item_id, i)) {
							item.checked = false;
							item.disabled = false;
						} else {
							data.spec_attr[i].spec_items.splice(j, 1);
							j--;
						}
					}
				}

				this.specData = data;
				if (this.specData.spec_attr) {
					this.specData.spec_attr.forEach(item => {
						this.alreadyChioce += item.group_name;
						this.alreadyChioce += ' / ';
					});
					this.alreadyChioce = this.alreadyChioce.replace(/(\s\/\s)$/gi, '');
				}
			},

			/*判断有没有规格*/
			hasSpec(id, _index) {
				let flag = false;
				for (let i = 0; i < this.productSku.length; i++) {
					let arr = this.productSku[i];
					if (arr[_index] == id) {
						flag = true;
						break;
					}
				}
				return flag;
			},

			/*打开窗口*/
			openPopup(e) {
				let obj = {
					specData: this.specData,
					detail: this.detail,
					productSpecArr: this.specData != null ? new Array(this.specData.spec_attr.length) : [],
					show_sku: {
						sku_image: '',
						seckill_price: 0,
						product_sku_id: 0,
						line_price: 0,
						seckill_stock: 0,
						seckill_product_sku_id: 0,
						sum: 1
					},
					productSku: this.productSku,
					type: e
				};
				this.productModel = obj;
				this.isPopup = true;
			},

			/*关闭弹窗*/
			closePopup(e, cart_total_num) {
				this.isPopup = false;
				if (e && e.spec_attr) {
					this.alreadyChioce = '';
					let has = '已选：';
					let noone = '';
					e.spec_attr.forEach(item => {
						if (item.spec_items) {
							let h = '';
							for (let i = 0; i < item.spec_items.length; i++) {
								let child = item.spec_items[i];
								if (child.checked) {
									h = child.spec_value + ' / ';
									break;
								}
							}
							if (h != '') {
								has += h;
							} else {
								noone += item.group_name;
							}
						}
					});
					if (noone != '') {
						this.alreadyChioce = noone;
					} else {
						has = has.replace(/(\s\/\s)$/gi, '');
						this.alreadyChioce = has;
					}
				}
				if (cart_total_num) {
					this.cart_total_num = cart_total_num;
				}
			},
			confirm() {
				this.$refs.countdown.clear();
			},
			/*打开客服*/
			openMaservice() {
				this.isMpservice = true;
			},

			/*关闭客服*/
			closeMpservice() {
				this.isMpservice = false;
			},
			//跳转店铺首页
			goto_shop() {
				let self = this;
				self.gotoPage('/pagesShop/shop/shop?shop_supplier_id=' + self.detail.supplier.shop_supplier_id);
			},

			//关闭分享
			closeBottmpanel(data) {
			    this.isbottmpanel = false;
			    if (data.type == 2) {
			        this.poster_img = data.poster_img;
			        this.isCreatedImg = true;
			    }
			},
			
			//分享按钮
			showShare() {
			    let self = this;
			    //#ifndef APP-PLUS
			    self.isbottmpanel = true;
			    //#endif
			    //#ifdef APP-PLUS
			    self.appParams.title = self.detail.product_name;
			    self.appParams.summary = self.detail.product_name;
			    // 构建页面参数
			    let params = self.getShareUrlParams({
			        product_id: self.product_id
			    });
			    self.appParams.path = '/pages/plus/seckill/detail/detail?' + params;
			    self.appParams.image = self.detail.image[0].file_path;
			    self.isAppShare = true;
			    //#endif
			},
			//关闭分享
			closeAppShare(data) {
			    this.isAppShare = false;
			},
			//关闭生成图片
			hidePopupFunc() {
			    this.isCreatedImg = false;
			},
			
			//保存海报图片
			savePosterImg() {
			    let self = this;
			    uni.showLoading({
			        title: '加载中'
			    });
			    // 下载海报图片
			    uni.downloadFile({
			        url: self.poster_img,
			        success(res) {
			            uni.hideLoading();
			            // 图片保存到本地
			            uni.saveImageToPhotosAlbum({
			                filePath: res.tempFilePath,
			                success(data) {
			                    uni.showToast({
			                        title: '保存成功',
			                        icon: 'success',
			                        duration: 2000
			                    });
			                    // 关闭商品海报
			                    self.isCreatedImg = false;
			                },
			                fail(err) {
			                    if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') {
			                        uni.showToast({
			                            title: '请允许访问相册后重试',
			                            icon: 'none',
			                            duration: 1000
			                        });
			                        setTimeout(() => {
			                            uni.openSetting();
			                        }, 1000);
			                    }
			                },
			                complete(res) {
			                    console.log('complete');
			                }
			            });
			        }
			    });
			},
		}
	};
</script>

<style lang="scss">
	.product-detail {
		padding-bottom: 90rpx;
	}
  .header {
    z-index: 99;
    position: fixed;
    height: 30px;
    line-height: 30px;
    top: 0;
    left: 0;
    width: 100%;
    // padding-top: var(--status-bar-height);
  }
  .reg180 {
    padding-right: 20rpx;
    text-align: center;
    transform: rotateY(180deg);
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .slider {
    margin-top: 11rpx;
    height: 8rpx;
    background: #F2F2F2;
    border-radius: 5rpx;
  }

  .slider-inner {
    height: 8rpx;
    background: linear-gradient(to right, #FE3A3A , #FE6236);
    border-radius: 4rpx;
  }

	.product-detail .product-pic,
	.product-detail .product-pic .swiper,
	.product-detail .product-pic image {
		width: 750rpx;
		height: 750rpx;
	}

	.product-detail .price-wrap {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.product-detail .price-wrap .left {
		display: flex;
		justify-content: flex-start;
		align-items: flex-end;
	}

	.product-detail .price-wrap .new-price {
		color: $dominant-color;
		font-size: 30rpx;
		font-weight: bold;
	}

	.product-detail .price-wrap .new-price .num {
		padding: 0 4rpx;
		font-size: 40rpx;
	}

	.product-detail .price-wrap .old-price {
		margin-left: 10rpx;
		font-size: 24rpx;
		color: #999999;
		text-decoration: line-through;
	}

	.product-detail .already-sale {
		font-size: 24rpx;
		color: #999999;
	}

	.product-detail .product-name {
		padding-top: 26rpx;
		font-size: 32rpx;
		font-weight: bold;
		color: #333333;
	}

	.product-detail .product-describe {
		padding: 18rpx;
		line-height: 40rpx;
		font-size: 26rpx;
		color: #666666;
		background-color: #f2f2f2;
		border-radius: 12rpx;
		word-break: break-all;
		margin-top: 28rpx;
	}

	.product-comment,
	.product-content {
		margin-top: 20rpx;
		background: #ffffff;
	}

	.product-content .content-box p image {
		width: 100%;
	}

	.product-content .content-box {
		font-size: 36rpx;
	}
	
	.content-item {
		padding: 10rpx;
		image {
			width: 100%;
		}
	}

	.btns-wrap {
		position: fixed;
		height: 100rpx;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		align-items: center;
		background: #ffffff;
	}

	.btns-wrap .icon-box {
		width: 100rpx;
		height: 100rpx;
	}

	.btns-wrap .icon-box .iconfont {
		font-size: 40rpx;
		color: #888888;
	}

	.btns-wrap .icon-box .iconfont .num {
		position: absolute;
		padding: 0 5rpx;
		top: 10rpx;
		left: 50%;
		height: 30rpx;
		line-height: 30rpx;
		border-radius: 15rpx;
		font-size: 20rpx;
		color: #ffffff;
		background: red;
	}

	.btns-wrap button,
	.btns-wrap button:after {
		height: 80rpx;
		line-height: 80rpx;
		margin: 0;
		padding: 0;
		flex: 1;
		border-radius: 40rpx;
		border: 0;
	}

	.btns-wrap button.add-cart {
		background: $orange-color;
	}

	.btns-wrap button.buy {
		background: $dominant-color;
	}

	.share-box {
		position: fixed;
		padding-right: 10rpx;
		width: 80rpx;
		height: 80rpx;
		right: 0;
		bottom: 180rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 16rpx 0 0 16rpx;
		background: rgba(0, 0, 0, 0.8);
	}

	.share-box button {
		padding: 0;
		background: 0;
		line-height: 60rpx;
	}

	.share-box .iconfont {
		margin-bottom: 10rpx;
		font-size: 50rpx;
		color: #ffffff;
	}

	.create-img {
		width: 100%;
		padding: 20rpx;
		box-sizing: border-box;
	}

	.create-img image {
		width: 100%;
	}

	.create-img button {
	    width: 100%;
	    height: 88rpx;
	    line-height: 88rpx;
	    border-radius: 44rpx;
	    box-shadow: 0 8rpx 16rpx 0 rgba(226, 35, 26, 0.6);
	}

	.product-detail .limited-spike {
		padding: 0 35rpx;
		height: 90rpx;
		color: #ffffff;
		border-radius: 12rpx 12rpx 0 0;
		background: linear-gradient(-90deg, #CB2BFF 0%, #7727E7 98%);
		// background: linear-gradient(to bottom, #ff6c65, #e2231a);
	}

	.product-detail .limited-spike .left-name {
		font-size: 32rpx;
		color: #ffffff;
	}

	.product-detail .limited-spike .right::v-deep text {
		color: #FFFFFF;
		font-size: 28rpx;
	}

	.product-detail .limited-spike .right::v-deep .box {
		height: 40rpx;
		padding: 4rpx;
		border-radius: 8rpx;
		line-height: 40rpx;
		text-align: center;
		background: #ffffff;
		color: #FF0001;
	}

	.product-detail .limited-spike .right::v-deep>text {
		margin-left: 10rpx;

	}

	.already-choice {
		margin-top: 20rpx;
		padding: 0 30rpx;
		background: #ffffff;
	}

	.already-choice .center-content {
		line-height: 90rpx;
	}

	.shop_head_info {
		margin: 20rpx;
		padding: 30rpx;
		box-sizing: border-box;
		background-color: white;
		border-radius: 12rpx;
	}

	.shop_list_body_item_shop {
		width: 100%;
		height: 120rpx;
		display: flex;
		justify-content: space-between;
	}

	.shop_list_body_item_shop_logo {
		width: 120rpx;
		height: 120rpx;
	}

	.shop_list_body_item_shop_logo image {
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.1);
		border-radius: 12rpx;
	}

	.shop_list_body_item_shop_info {
		box-sizing: border-box;
		margin-left: 20rpx;
		padding-top: 0;
		display: flex;
		justify-content: space-between;
		flex-direction: column;
	}

	.shop_list_body_item_shop_others {
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		flex-direction: column;
		text-align: right;
		padding-top: 0;
	}

	.shop_list_body_item_shop_others button {
		width: 160rpx;
		height: 60rpx;
		border: 1rpx solid #F6220C;
		border-radius: 30rpx;
		line-height: 60rpx;
		font-size: 26rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #F6220C;
		text-align: center;
		padding: 0;
		background-color: #ffffff;
	}

	.bottom-radius {
		border-bottom-left-radius: 12rpx;
		border-bottom-right-radius: 12rpx;
	}

	.pro_nameline {
		width: 4rpx;
		height: 24rpx;
		background-color: #f6220c;
		margin-right: 12rpx;
	}
</style>
